# Makefile for iprof
#
# Mike Lam, UMD
#


DYNINST_PREFIX=$(DYNINST_ROOT)/$(PLATFORM)
DYNINST_LIBS=-ldyninstAPI -linstructionAPI -lpatchAPI
#BOOST_INCLUDE=-I/fs/maxfli/lam/opt/boost_1_50_0
XED_KIT=/home/lam/opt/pin-2.13-65163-gcc.4.4.7-linux/extras/xed2-intel64

CFLAGS=-g -Wall -I$(XED_KIT)/include -I$(DYNINST_PREFIX)/include
LDFLAGS=$(XED_KIT)/lib/libxed.a -L$(DYNINST_PREFIX)/lib $(DYNINST_LIBS)

TARGETS=mutator

all: $(TARGETS)

mutator: mutator.cpp
	g++ -o $@ $(CFLAGS) $< $(LDFLAGS)

clean:
	rm -f $(TARGETS)

.PHONY: all clean

